package cn.llin.web.controller.dlxx;


import cn.llin.common.core.domain.AjaxResult;
import cn.llin.dlxx.domain.DataVehicleWarning;
import cn.llin.dlxx.service.IDataVehicleWarningService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/dataWaring")
public class DataVehicleWarningContrller {


    @Resource
    private IDataVehicleWarningService dataVehicleWarningService;


    @GetMapping("/getWaring")
    @ResponseBody
    public AjaxResult frame1(DataVehicleWarning dataVehicleWarning)
    {
        List<DataVehicleWarning> dataVehicleWarnings = dataVehicleWarningService.selectDataVehicleWarningList(dataVehicleWarning);

//        List<DataVehicleWarning> dataVehicleWarnings = dataVehicleWarningService.selectDataVehicleWarningLists();
        return AjaxResult.success(dataVehicleWarnings);

    }


}
